gtk-demo: Add a search button
authorMatthias Clasen <mclasen@redhat.com>
Thu, 3 Dec 2020 00:53:55 +0000 (19:53 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 3 Dec 2020 00:53:55 +0000 (19:53 -0500)
Easter eggs are great, but search shouldn't be one.

demos/gtk-demo/main.ui

index d4df910ef3c0dbaba18d804b98d6d72975aef94a..b4161c9519bb85e7d11f0b2e73d036fee6865bfb 100644 (file)
             <property name="label" translatable="yes">Run</property>
           </object>
         </child>
+        <child>
+          <object class="GtkToggleButton">
+            <property name="icon-name">edit-find-symbolic</property>
+            <property name="valign">center</property>
+            <property name="active" bind-source="searchbar" bind-property="search-mode-enabled" bind-flags="bidirectional|sync-create"/>
+            <accessibility>
+              <property name="label" translatable="yes">Search</property>
+            </accessibility>
+          </object>
+        </child>
         <child type="end">
           <object class="GtkMenuButton" id="gear_menu_button">
             <property name="valign">center</property>